home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ghostscript.prerm < prev    next >
Text File  |  2008-10-20  |  1KB  |  51 lines

  1. #! /bin/sh
  2. # prerm script for ghostscript
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <prerm> `remove'
  10. #        * <old-prerm> `upgrade' <new-version>
  11. #        * <new-prerm> `failed-upgrade' <old-version>
  12. #        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
  13. #        * <deconfigured's-prerm> `deconfigure' `in-favour'
  14. #          <package-being-installed> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see http://www.debian.org/doc/debian-policy/ or
  17. # the debian-policy package
  18.  
  19.  
  20. case "$1" in
  21.     remove)
  22. #       install-info --quiet --remove /usr/info/ghostscript.info.gz
  23.     if type defoma-app >/dev/null 2>&1; then
  24.       defoma-app -t purge gs
  25.     fi
  26.     update-alternatives --remove-all ps2pdf
  27.     ;;
  28.     upgrade)
  29.     if type defoma-app >/dev/null 2>&1; then
  30.       defoma-app -t clean gs
  31.     update-alternatives --remove-all ps2pdf
  32.     fi
  33.         ;;
  34.     deconfigure)
  35. #       install-info --quiet --remove /usr/info/ghostscript.info.gz
  36.         ;;
  37.     failed-upgrade)
  38.         ;;
  39.     *)
  40.         echo "prerm called with unknown argument \`$1'" >&2
  41.         exit 1
  42.     ;;
  43. esac
  44.  
  45. # dh_installdeb will replace this with shell code automatically
  46. # generated by other debhelper scripts.
  47.  
  48.  
  49.  
  50. exit 0
  51.